<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.14.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DM-CtrlH7-BF-DevProgram: I2C Exported Macros</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="50x5.png"/></td>
  <td id="projectalign">
   <div id="projectname">DM-CtrlH7-BF-DevProgram<span id="projectnumber">&#160;beta 0.1</span>
   </div>
   <div id="projectbrief">C.ONE Studio Damiao Development Board Framework</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.14.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search/",'.html');
</script>
<script type="text/javascript">
$(function() { codefold.init(); });
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search',true);
  $(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(function(){initNavTree('group___i2_c___exported___macros.html','',''); });
</script>
<div id="container">
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">I2C Exported Macros <div class="ingroups"><a class="el" href="group___s_t_m32_h7xx___h_a_l___driver.html">STM32H7xx_HAL_Driver</a> &raquo; <a class="el" href="group___i2_c.html">I2C</a></div></div></div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 id="header-define-members" class="groupheader"><a id="define-members" name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga74c8fd72a78882720c28448ce8bd33d8" id="r_ga74c8fd72a78882720c28448ce8bd33d8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ga74c8fd72a78882720c28448ce8bd33d8">__HAL_I2C_RESET_HANDLE_STATE</a>(__HANDLE__)</td></tr>
<tr class="memdesc:ga74c8fd72a78882720c28448ce8bd33d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset I2C handle state.  <br /></td></tr>
<tr class="memitem:gac9d8b249b06b2d30f987acc9ceebd1d9" id="r_gac9d8b249b06b2d30f987acc9ceebd1d9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#gac9d8b249b06b2d30f987acc9ceebd1d9">__HAL_I2C_ENABLE_IT</a>(__HANDLE__,  __INTERRUPT__)</td></tr>
<tr class="memdesc:gac9d8b249b06b2d30f987acc9ceebd1d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable the specified I2C interrupt.  <br /></td></tr>
<tr class="memitem:ga33d0c7202ae298fa3ae128c5da49d455" id="r_ga33d0c7202ae298fa3ae128c5da49d455"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ga33d0c7202ae298fa3ae128c5da49d455">__HAL_I2C_DISABLE_IT</a>(__HANDLE__,  __INTERRUPT__)</td></tr>
<tr class="memdesc:ga33d0c7202ae298fa3ae128c5da49d455"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable the specified I2C interrupt.  <br /></td></tr>
<tr class="memitem:ga932024bf4a259e0cdaf9e50b38e3d41a" id="r_ga932024bf4a259e0cdaf9e50b38e3d41a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ga932024bf4a259e0cdaf9e50b38e3d41a">__HAL_I2C_GET_IT_SOURCE</a>(__HANDLE__,  __INTERRUPT__)</td></tr>
<tr class="memdesc:ga932024bf4a259e0cdaf9e50b38e3d41a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether the specified I2C interrupt source is enabled or not.  <br /></td></tr>
<tr class="memitem:gafbc0a6e4113be03100fbae1314a8b395" id="r_gafbc0a6e4113be03100fbae1314a8b395"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#gafbc0a6e4113be03100fbae1314a8b395">I2C_FLAG_MASK</a>&#160;&#160;&#160;(0x0001FFFFU)</td></tr>
<tr class="memdesc:gafbc0a6e4113be03100fbae1314a8b395"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether the specified I2C flag is set or not.  <br /></td></tr>
<tr class="memitem:gafbdf01a7dc3183de7af56456cab93551" id="r_gafbdf01a7dc3183de7af56456cab93551"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#gafbdf01a7dc3183de7af56456cab93551">__HAL_I2C_GET_FLAG</a>(__HANDLE__,  __FLAG__)</td></tr>
<tr class="memitem:ga933e2ea67e86db857a06b70a93be1186" id="r_ga933e2ea67e86db857a06b70a93be1186"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ga933e2ea67e86db857a06b70a93be1186">__HAL_I2C_CLEAR_FLAG</a>(__HANDLE__,  __FLAG__)</td></tr>
<tr class="memdesc:ga933e2ea67e86db857a06b70a93be1186"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear the I2C pending flags which are cleared by writing 1 in a specific bit.  <br /></td></tr>
<tr class="memitem:gacff412c47b0c1d63ef3b2a07f65988b7" id="r_gacff412c47b0c1d63ef3b2a07f65988b7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#gacff412c47b0c1d63ef3b2a07f65988b7">__HAL_I2C_ENABLE</a>(__HANDLE__)</td></tr>
<tr class="memdesc:gacff412c47b0c1d63ef3b2a07f65988b7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable the specified I2C peripheral.  <br /></td></tr>
<tr class="memitem:ga3d6a35da02ca72537a15570912c80412" id="r_ga3d6a35da02ca72537a15570912c80412"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ga3d6a35da02ca72537a15570912c80412">__HAL_I2C_DISABLE</a>(__HANDLE__)</td></tr>
<tr class="memdesc:ga3d6a35da02ca72537a15570912c80412"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable the specified I2C peripheral.  <br /></td></tr>
<tr class="memitem:ga11f1b2e130ffa7e62d82ff1ebdb3f4f4" id="r_ga11f1b2e130ffa7e62d82ff1ebdb3f4f4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ga11f1b2e130ffa7e62d82ff1ebdb3f4f4">__HAL_I2C_GENERATE_NACK</a>(__HANDLE__)</td></tr>
<tr class="memdesc:ga11f1b2e130ffa7e62d82ff1ebdb3f4f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generate a Non-Acknowledge I2C peripheral in Slave mode.  <br /></td></tr>
</table>
<a name="details" id="details"></a><h2 id="header-details" class="groupheader">Detailed Description</h2>
<a name="doc-define-members" id="doc-define-members"></a><h2 id="header-doc-define-members" class="groupheader">Macro Definition Documentation</h2>
<a id="ga933e2ea67e86db857a06b70a93be1186" name="ga933e2ea67e86db857a06b70a93be1186"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga933e2ea67e86db857a06b70a93be1186">&#9670;&#160;</a></span>__HAL_I2C_CLEAR_FLAG</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __HAL_I2C_CLEAR_FLAG</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>__HANDLE__</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>__FLAG__</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">                                                    (((__FLAG__) == I2C_FLAG_TXE) ? \</div>
<div class="line">                                                    ((__HANDLE__)-&gt;Instance-&gt;ISR |= (__FLAG__)) : \</div>
<div class="line">                                                    ((__HANDLE__)-&gt;Instance-&gt;ICR = (__FLAG__)))</div>
</div><!-- fragment -->
<p>Clear the I2C pending flags which are cleared by writing 1 in a specific bit. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">__HANDLE__</td><td>specifies the I2C Handle. </td></tr>
    <tr><td class="paramname">__FLAG__</td><td>specifies the flag to clear. This parameter can be any combination of the following values: <ul>
<li>I2C_FLAG_TXE Transmit data register empty </li>
<li>I2C_FLAG_ADDR Address matched (slave mode) </li>
<li>I2C_FLAG_AF Acknowledge failure received flag </li>
<li>I2C_FLAG_STOPF STOP detection flag </li>
<li>I2C_FLAG_BERR Bus error </li>
<li>I2C_FLAG_ARLO Arbitration lost </li>
<li>I2C_FLAG_OVR Overrun/Underrun </li>
<li>I2C_FLAG_PECERR PEC error in reception </li>
<li>I2C_FLAG_TIMEOUT Timeout or Tlow detection flag </li>
<li>I2C_FLAG_ALERT SMBus alert</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga3d6a35da02ca72537a15570912c80412" name="ga3d6a35da02ca72537a15570912c80412"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3d6a35da02ca72537a15570912c80412">&#9670;&#160;</a></span>__HAL_I2C_DISABLE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __HAL_I2C_DISABLE</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>__HANDLE__</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">(CLEAR_BIT((__HANDLE__)-&gt;Instance-&gt;CR1, <a class="code hl_define" href="group___peripheral___registers___bits___definition.html#ga953b0d38414808db79da116842ed3262">I2C_CR1_PE</a>))</div>
<div class="ttc" id="agroup___peripheral___registers___bits___definition_html_ga953b0d38414808db79da116842ed3262"><div class="ttname"><a href="group___peripheral___registers___bits___definition.html#ga953b0d38414808db79da116842ed3262">I2C_CR1_PE</a></div><div class="ttdeci">#define I2C_CR1_PE</div><div class="ttdef"><b>Definition</b> stm32h723xx.h:13052</div></div>
</div><!-- fragment -->
<p>Disable the specified I2C peripheral. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">__HANDLE__</td><td>specifies the I2C Handle. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga33d0c7202ae298fa3ae128c5da49d455" name="ga33d0c7202ae298fa3ae128c5da49d455"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga33d0c7202ae298fa3ae128c5da49d455">&#9670;&#160;</a></span>__HAL_I2C_DISABLE_IT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __HAL_I2C_DISABLE_IT</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>__HANDLE__</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>__INTERRUPT__</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">((__HANDLE__)-&gt;Instance-&gt;CR1 &amp;= (~(__INTERRUPT__)))</div>
</div><!-- fragment -->
<p>Disable the specified I2C interrupt. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">__HANDLE__</td><td>specifies the I2C Handle. </td></tr>
    <tr><td class="paramname">__INTERRUPT__</td><td>specifies the interrupt source to disable. This parameter can be one of the following values: <ul>
<li>I2C_IT_ERRI Errors interrupt enable </li>
<li>I2C_IT_TCI Transfer complete interrupt enable </li>
<li>I2C_IT_STOPI STOP detection interrupt enable </li>
<li>I2C_IT_NACKI NACK received interrupt enable </li>
<li>I2C_IT_ADDRI Address match interrupt enable </li>
<li>I2C_IT_RXI RX interrupt enable </li>
<li>I2C_IT_TXI TX interrupt enable</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gacff412c47b0c1d63ef3b2a07f65988b7" name="gacff412c47b0c1d63ef3b2a07f65988b7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacff412c47b0c1d63ef3b2a07f65988b7">&#9670;&#160;</a></span>__HAL_I2C_ENABLE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __HAL_I2C_ENABLE</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>__HANDLE__</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">(SET_BIT((__HANDLE__)-&gt;Instance-&gt;CR1, <a class="code hl_define" href="group___peripheral___registers___bits___definition.html#ga953b0d38414808db79da116842ed3262">I2C_CR1_PE</a>))</div>
</div><!-- fragment -->
<p>Enable the specified I2C peripheral. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">__HANDLE__</td><td>specifies the I2C Handle. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gac9d8b249b06b2d30f987acc9ceebd1d9" name="gac9d8b249b06b2d30f987acc9ceebd1d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac9d8b249b06b2d30f987acc9ceebd1d9">&#9670;&#160;</a></span>__HAL_I2C_ENABLE_IT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __HAL_I2C_ENABLE_IT</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>__HANDLE__</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>__INTERRUPT__</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">((__HANDLE__)-&gt;Instance-&gt;CR1 |= (__INTERRUPT__))</div>
</div><!-- fragment -->
<p>Enable the specified I2C interrupt. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">__HANDLE__</td><td>specifies the I2C Handle. </td></tr>
    <tr><td class="paramname">__INTERRUPT__</td><td>specifies the interrupt source to enable. This parameter can be one of the following values: <ul>
<li>I2C_IT_ERRI Errors interrupt enable </li>
<li>I2C_IT_TCI Transfer complete interrupt enable </li>
<li>I2C_IT_STOPI STOP detection interrupt enable </li>
<li>I2C_IT_NACKI NACK received interrupt enable </li>
<li>I2C_IT_ADDRI Address match interrupt enable </li>
<li>I2C_IT_RXI RX interrupt enable </li>
<li>I2C_IT_TXI TX interrupt enable</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga11f1b2e130ffa7e62d82ff1ebdb3f4f4" name="ga11f1b2e130ffa7e62d82ff1ebdb3f4f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga11f1b2e130ffa7e62d82ff1ebdb3f4f4">&#9670;&#160;</a></span>__HAL_I2C_GENERATE_NACK</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __HAL_I2C_GENERATE_NACK</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>__HANDLE__</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">(SET_BIT((__HANDLE__)-&gt;Instance-&gt;CR2, <a class="code hl_define" href="group___peripheral___registers___bits___definition.html#ga8bcbbaf564cb68e3afed79c3cd34aa1f">I2C_CR2_NACK</a>))</div>
<div class="ttc" id="agroup___peripheral___registers___bits___definition_html_ga8bcbbaf564cb68e3afed79c3cd34aa1f"><div class="ttname"><a href="group___peripheral___registers___bits___definition.html#ga8bcbbaf564cb68e3afed79c3cd34aa1f">I2C_CR2_NACK</a></div><div class="ttdeci">#define I2C_CR2_NACK</div><div class="ttdef"><b>Definition</b> stm32h723xx.h:13132</div></div>
</div><!-- fragment -->
<p>Generate a Non-Acknowledge I2C peripheral in Slave mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">__HANDLE__</td><td>specifies the I2C Handle. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gafbdf01a7dc3183de7af56456cab93551" name="gafbdf01a7dc3183de7af56456cab93551"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafbdf01a7dc3183de7af56456cab93551">&#9670;&#160;</a></span>__HAL_I2C_GET_FLAG</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __HAL_I2C_GET_FLAG</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>__HANDLE__</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>__FLAG__</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">                                                    (((((__HANDLE__)-&gt;Instance-&gt;ISR) &amp; \</div>
<div class="line">                                                    (__FLAG__)) == (__FLAG__)) ? SET : RESET)</div>
</div><!-- fragment -->
</div>
</div>
<a id="ga932024bf4a259e0cdaf9e50b38e3d41a" name="ga932024bf4a259e0cdaf9e50b38e3d41a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga932024bf4a259e0cdaf9e50b38e3d41a">&#9670;&#160;</a></span>__HAL_I2C_GET_IT_SOURCE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __HAL_I2C_GET_IT_SOURCE</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>__HANDLE__</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>__INTERRUPT__</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">                                                                   ((((__HANDLE__)-&gt;Instance-&gt;CR1 &amp; \</div>
<div class="line">                                                                   (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)</div>
</div><!-- fragment -->
<p>Check whether the specified I2C interrupt source is enabled or not. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">__HANDLE__</td><td>specifies the I2C Handle. </td></tr>
    <tr><td class="paramname">__INTERRUPT__</td><td>specifies the I2C interrupt source to check. This parameter can be one of the following values: <ul>
<li>I2C_IT_ERRI Errors interrupt enable </li>
<li>I2C_IT_TCI Transfer complete interrupt enable </li>
<li>I2C_IT_STOPI STOP detection interrupt enable </li>
<li>I2C_IT_NACKI NACK received interrupt enable </li>
<li>I2C_IT_ADDRI Address match interrupt enable </li>
<li>I2C_IT_RXI RX interrupt enable </li>
<li>I2C_IT_TXI TX interrupt enable</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">The</td><td>new state of <b>INTERRUPT</b> (SET or RESET). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga74c8fd72a78882720c28448ce8bd33d8" name="ga74c8fd72a78882720c28448ce8bd33d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga74c8fd72a78882720c28448ce8bd33d8">&#9670;&#160;</a></span>__HAL_I2C_RESET_HANDLE_STATE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define __HAL_I2C_RESET_HANDLE_STATE</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>__HANDLE__</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">((__HANDLE__)-&gt;State = <a class="code hl_enumvalue" href="group___h_a_l__state__structure__definition.html#ggaef355af8eab251ae2a19ee164ad81c37a91ba08634e08d7287940f1bc5a37eeff">HAL_I2C_STATE_RESET</a>)</div>
<div class="ttc" id="agroup___h_a_l__state__structure__definition_html_ggaef355af8eab251ae2a19ee164ad81c37a91ba08634e08d7287940f1bc5a37eeff"><div class="ttname"><a href="group___h_a_l__state__structure__definition.html#ggaef355af8eab251ae2a19ee164ad81c37a91ba08634e08d7287940f1bc5a37eeff">HAL_I2C_STATE_RESET</a></div><div class="ttdeci">@ HAL_I2C_STATE_RESET</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_i2c.h:110</div></div>
</div><!-- fragment -->
<p>Reset I2C handle state. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">__HANDLE__</td><td>specifies the I2C Handle. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gafbc0a6e4113be03100fbae1314a8b395" name="gafbc0a6e4113be03100fbae1314a8b395"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafbc0a6e4113be03100fbae1314a8b395">&#9670;&#160;</a></span>I2C_FLAG_MASK</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define I2C_FLAG_MASK&#160;&#160;&#160;(0x0001FFFFU)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check whether the specified I2C flag is set or not. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">__HANDLE__</td><td>specifies the I2C Handle. </td></tr>
    <tr><td class="paramname">__FLAG__</td><td>specifies the flag to check. This parameter can be one of the following values: <ul>
<li>I2C_FLAG_TXE Transmit data register empty </li>
<li>I2C_FLAG_TXIS Transmit interrupt status </li>
<li>I2C_FLAG_RXNE Receive data register not empty </li>
<li>I2C_FLAG_ADDR Address matched (slave mode) </li>
<li>I2C_FLAG_AF Acknowledge failure received flag </li>
<li>I2C_FLAG_STOPF STOP detection flag </li>
<li>I2C_FLAG_TC Transfer complete (master mode) </li>
<li>I2C_FLAG_TCR Transfer complete reload </li>
<li>I2C_FLAG_BERR Bus error </li>
<li>I2C_FLAG_ARLO Arbitration lost </li>
<li>I2C_FLAG_OVR Overrun/Underrun </li>
<li>I2C_FLAG_PECERR PEC error in reception </li>
<li>I2C_FLAG_TIMEOUT Timeout or Tlow detection flag </li>
<li>I2C_FLAG_ALERT SMBus alert </li>
<li>I2C_FLAG_BUSY Bus busy </li>
<li>I2C_FLAG_DIR Transfer direction (slave mode)</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">The</td><td>new state of <b>FLAG</b> (SET or RESET). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="page-nav" class="page-nav-panel">
<div id="page-nav-resize-handle"></div>
<div id="page-nav-tree">
<div id="page-nav-contents">
</div><!-- page-nav-contents -->
</div><!-- page-nav-tree -->
</div><!-- page-nav -->
</div><!-- container -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.14.0 </li>
  </ul>
</div>
</body>
</html>
